package com.ev.asl.dao;

import com.ev.asl.domain.AssemblyInstructionDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author 姚家乐
 * @since 2021/6/9 14:15
 */
@Mapper
public interface AssemblyInstructionDao {

    int save(AssemblyInstructionDO entity);

    AssemblyInstructionDO get(@Param("id")Long id);

    Map<String,Object> getDetailInfo(@Param("id")Long id);

    Map<String,Object> getDetail(@Param("id")Long id);

    int update(AssemblyInstructionDO entity);

    int batchRemove(Long[] ids);

    int remove(Long id);

    List<AssemblyInstructionDO> list(Map<String,Object> param);

    int countForMap(Map<String, Object> params);

    List<Map<String,Object>> listForMap(Map<String,Object> param);

    List<Long> getPlanIds();

    int batchUpdate(@Param("entitys")List<AssemblyInstructionDO> entitys);
}
